#include <rte_mbuf.h>

#include "reactor.h"

#pragma once

namespace kawauso {

    class NetworkPoller : public Poller {
        std::vector<rte_mempool *>  packetBufferPools;
        std::vector<EthernetDevice> devices;
        NetworkOptions options;
    public:
        explicit NetworkPoller(NetworkOptions &options);
        bool poll() override;
    private:
        void initPacketBufferPools();
        void initEthernetDevices();
    };

}